<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

<table border=1 align="center">
		<tr>
			<td>编号</td>
			<td>产品</td>
			<td>价格</td>
			<td>S</td>
			<td>M</td>
			<td>L</td>
			<td>图片</td>
			<td>加入购物车</td>
		</tr>
		<tr>
			<td >${stock.stock_id}</td>
			<td >${stock.product}</td>
			<td >${stock.price}</td>
			<td >${stock.s}</td>
			<td >${stock.m}</td>
			<td >${stock.l}</td>
			<td ><img src="${pageContext.request.contextPath }/${stock.url}"/></td>
			<form action="${pageContext.request.contextPath}/insertCart">
			<td> <input type="hidden" name = "stock_id" value = "${stock.stock_id}">
				 <input type="hidden" name = "product" value = "${stock.product}">
				 <input type="hidden" name = "price" value = "${stock.price}">
				 <input type="hidden" name = "url" value = "${stock.url}">
				 <input type="radio" name = "size" value = "S">S
				 <input type="radio" name = "size" value = "M">M
				 <input type="radio" name = "size" value = "L">L
				 <input type="submit" value="加入购物车">
				 <span>${msg}</span></td>
		  </form>
		</tr>
	</table>

</body>
</html>